﻿CREATE TABLE [dbo].[codePaymentType] (
    [PaymentType]   CHAR (3)     NOT NULL,
    [Description]   VARCHAR (50) NULL,
    [ProcessorCode] CHAR (1)     NULL,
    [Active]        BIT          NOT NULL,
    [DebitCard]     BIT          NULL
);
GO
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Defines the valid payment types.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'codePaymentType';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Payment Type code.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'codePaymentType',
	@level2type = N'COLUMN', @level2name = N'PaymentType';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Definition for PaymentType code.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'codePaymentType',
	@level2type = N'COLUMN', @level2name = N'Description';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Indicates which payment processor is responsible for handling transactions.  See codePaymentProcessor.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'codePaymentType',
	@level2type = N'COLUMN', @level2name = N'ProcessorCode';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Indicates whether the PaymentType is active (1), or not (0).', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'codePaymentType',
	@level2type = N'COLUMN', @level2name = N'Active';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The bit variable to indicate if the payment type is debit  or not', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'codePaymentType',
	@level2type = N'COLUMN', @level2name = N'DebitCard';

